<template>
<div class="block">
  <el-card>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="queryMap.pageNum"
      :page-sizes="[5, 10, 30, 50]"
      :page-size="queryMap.pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </el-card>

</div>
</template>

<script>
export default {
  name: "PayManage",
  data(){
    return{
      total:0,
      queryMap:{
        pageNum:1,
        pageSize:5
      }
    }

  },
  mounted() {
    this.getList()
  },
  methods:{
    getList(){
      this.$http.get('/pay/findList').then(res =>{
        this.total = res.data.data.total
        console.log(res)
      })
    },
    handleCurrentChange(newPageNum){
      this.queryMap.pageNum = newPageNum
    },
    handleSizeChange(newPageSize){
      this.queryMap.pageNum = newPageSize
    }
  }
}

</script>

<style scoped>

</style>
